import http from "@/utils/request";

export const getStuList = (count = 10, page = 1, classes) =>
  http.get("/students/getstulist", { params: { count, page, class: classes } });

export const addStu = (data) => http.post("/students/addstu", { ...data });

export const editStu = (data) => http.post("/students/updatestu", { ...data });

export const deleteStu = (sId) =>
  http.get("/students/delstu", { params: { sId } });

export const searchStu = (key, count = 10, page = 1) =>
  http.get("/students/searchstu", { params: { key, count, page } });
